package com.gameley.dmgtpf.root.service;

import com.gameley.dmgtpf.common.base.PubBaseService;
import com.gameley.dmgtpf.root.entity.AdminsEntity;
import org.springframework.web.bind.annotation.RequestParam;

import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * @author libencheng
 * @email libencheng@gmail.com
 * @date 2021-07-07 14:57:36
 */
public interface AdminsService extends PubBaseService<AdminsEntity>
{
    
    Boolean userLogin(@RequestParam("uname") String uname, @RequestParam("upass") String upass) throws NoSuchAlgorithmException;
    
    List<AdminsEntity> selectObjs();
    
    Boolean register(AdminsEntity admin) throws Exception;
    
}
